package com.example.bootdemo.service.impl;

import com.example.bootdemo.dao.IUserMapper;
import com.example.bootdemo.entity.User;
import com.example.bootdemo.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class UserServiceImpl implements IUserService {
    @Resource
    private IUserMapper mapper;
    @Override
    public int add(User user) {
        return mapper.add(user);
    }

    @Override
    public List<Map<String, Object>> queryall() {
        return mapper.queryall() ;

    }
}
